From: Alessio Treglia Date: Sat, 14 Nov 2020 02:27:34 +0000 (-0500) Subject: Add -O2 to CFLAGS by default, -O0 if noopt is set. X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1~1^2^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d0ad544d20ea918ce5b2f59271eaf6f5fbed8da2;p=gpac.git Add -O2 to CFLAGS by default, -O0 if noopt is set. Forwarded: not-needed Forwarded: not-needed Gbp-Pq: Name gcc-optflags.patch --- diff --git a/configure b/configure index 485bfe2..adab0ca 100755 --- a/configure +++ b/configure @@ -360,7 +360,7 @@ for opt do ;; --cpu=*) cpu=`echo $opt | cut -d '=' -f 2` ;; - --enable-debug) debuginfo="yes"; no_gcc_opt="yes" + --enable-debug) debuginfo="yes"; ;; --disable-opt) no_gcc_opt="yes" ;; @@ -708,7 +708,7 @@ fi #GCC opt if test "$no_gcc_opt" = "no"; then - CFLAGS="-O3 $CFLAGS" + CFLAGS="-O2 $CFLAGS" else CFLAGS="-O0 $CFLAGS" fi